@extends('layouts.master')

@section('title')
@parent
:: Login
@stop

{{-- Content --}}
@section('content')
<div class="page-header">
    <h2>Login into your account</h2>
</div>

{{ Form::open(array('url' => 'login', 'class' => 'form-horizontal')) }}

    <!-- Name -->
    <div class="form-group {{{ $errors->has('username') ? ' has-error' : '' }}}">

        <div class="col-sm-4">
			{{ Form::label('username', 'Username', array('class' => 'control-label')) }}
            {{ Form::text('username', Input::old('username'), array('class' => 'col-sm-2 form-control')) }}
            {{ $errors->first('username') }}
        </div>
    </div>

    <!-- Password -->
    <div class="form-group {{{ $errors->has('password') ? ' has-error' : '' }}}">

        <div class="col-sm-4">
			{{ Form::label('password', 'Password', array('class' => 'control-label')) }}
            {{ Form::password('password', array('class' => 'col-sm-2 form-control')) }}
            {{ $errors->first('password') }}
        </div>
    </div>

    <!-- Login button -->
    <div class="form-group">
        <div class="col-sm-4">
            {{ Form::submit('Login', array('class' => 'btn btn-success')) }}
		</div>
    </div>

{{ Form::close() }}
@stop